#!/usr/bin/env python 
# -*- coding:UTF-8 -*-

# 1.基本操作
## 1.1 元祖创建
tuple_001 = ()
print(tuple_001)
tuple_001 = (1,)
print(tuple_001)
tuple_001=(1,2,3,4,5)
print(tuple_001)
tuple_002=('1','2','3','4','5')
print(tuple_002)

if tuple_001 is not tuple_002:
    print("不等于")

## 1.2 元祖检索
for i in range(len(tuple_001)):
    print("tuple_001[%d] is : %d ,type is %s " % (i,tuple_001[i],type(tuple_001[i])))
for i in range(len(tuple_002)):
    print("tuple_001[%d] is:%s,type is %s" % (i,tuple_002[i],type(tuple_002[i])))

## 1.3 元祖修改
## 1.4 元祖的数学运算
print(tuple_001+tuple_002)

